package com.infinite.controller;

import com.infinite.mapper.UserMapper;
import com.infinite.pojo.Employee;
import com.infinite.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MysqlController {
    @Autowired
    UserMapper userMapper;
    @GetMapping("manager/list")
    public List<User> queryEmployeeList(){
        List<User> users = userMapper.queryUserList();
        return users;
    }
}
